Optimal. Leaf size=55 \[ \frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{\sqrt {a} d (a+b)}-\frac {\tanh ^{-1}(\cosh (c+d x))}{d (a+b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {4133, 481, 206, 205} \[ \frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{\sqrt {a} d (a+b)}-\frac {\tanh ^{-1}(\cosh (c+d x))}{d (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 206
Rule 481
Rule 4133
Rubi steps
\begin {align*} \int \frac {\text {csch}(c+d x)}{a+b \text {sech}^2(c+d x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x^2}{\left (1-x^2\right ) \left (b+a x^2\right )} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{(a+b) d}+\frac {b \operatorname {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{(a+b) d}\\ &=\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{\sqrt {a} (a+b) d}-\frac {\tanh ^{-1}(\cosh (c+d x))}{(a+b) d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.93, size = 232, normalized size = 4.22 \[ \frac {\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sinh (c) \tanh \left (\frac {d x}{2}\right ) \left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right )}{\sqrt {a}}+\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sinh (c) \tanh \left (\frac {d x}{2}\right ) \left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right )}{\sqrt {a}}+\log \left (\sinh \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cosh \left (\frac {1}{2} (c+d x)\right )\right )}{d (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 533, normalized size = 9.69 \[ \left [\frac {\sqrt {-\frac {b}{a}} \log \left (\frac {a \cosh \left (d x + c\right )^{4} + 4 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + a \sinh \left (d x + c\right )^{4} + 2 \, {\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, a \cosh \left (d x + c\right )^{2} + a - 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \, {\left (a \cosh \left (d x + c\right )^{3} + {\left (a - 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + 4 \, {\left (a \cosh \left (d x + c\right )^{3} + 3 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{3} + a \cosh \left (d x + c\right ) + {\left (3 \, a \cosh \left (d x + c\right )^{2} + a\right )} \sinh \left (d x + c\right )\right )} \sqrt {-\frac {b}{a}} + a}{a \cosh \left (d x + c\right )^{4} + 4 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + a \sinh \left (d x + c\right )^{4} + 2 \, {\left (a + 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, a \cosh \left (d x + c\right )^{2} + a + 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \, {\left (a \cosh \left (d x + c\right )^{3} + {\left (a + 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + a}\right ) - 2 \, \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) + 2 \, \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right )}{2 \, {\left (a + b\right )} d}, -\frac {\sqrt {\frac {b}{a}} \arctan \left (\frac {{\left (a \cosh \left (d x + c\right )^{3} + 3 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{3} + {\left (a + 4 \, b\right )} \cosh \left (d x + c\right ) + {\left (3 \, a \cosh \left (d x + c\right )^{2} + a + 4 \, b\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {b}{a}}}{2 \, b}\right ) - \sqrt {\frac {b}{a}} \arctan \left (\frac {{\left (a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right )\right )} \sqrt {\frac {b}{a}}}{2 \, b}\right ) + \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) - \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right )}{{\left (a + b\right )} d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.25, size = 67, normalized size = 1.22 \[ \frac {b \arctan \left (\frac {2 \left (a +b \right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a -2 b}{4 \sqrt {a b}}\right )}{d \left (a +b \right ) \sqrt {a b}}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \left (a +b \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {\log \left ({\left (e^{\left (d x + c\right )} + 1\right )} e^{\left (-c\right )}\right )}{a d + b d} + \frac {\log \left ({\left (e^{\left (d x + c\right )} - 1\right )} e^{\left (-c\right )}\right )}{a d + b d} + 2 \, \int \frac {b e^{\left (3 \, d x + 3 \, c\right )} - b e^{\left (d x + c\right )}}{a^{2} + a b + {\left (a^{2} e^{\left (4 \, c\right )} + a b e^{\left (4 \, c\right )}\right )} e^{\left (4 \, d x\right )} + 2 \, {\left (a^{2} e^{\left (2 \, c\right )} + 3 \, a b e^{\left (2 \, c\right )} + 2 \, b^{2} e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.18, size = 616, normalized size = 11.20 \[ -\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (b^4\,\sqrt {-a^2\,d^2-2\,a\,b\,d^2-b^2\,d^2}+16\,a^2\,b^2\,\sqrt {-a^2\,d^2-2\,a\,b\,d^2-b^2\,d^2}+8\,a\,b^3\,\sqrt {-a^2\,d^2-2\,a\,b\,d^2-b^2\,d^2}\right )}{16\,d\,a^3\,b^2+24\,d\,a^2\,b^3+9\,d\,a\,b^4+d\,b^5}\right )}{\sqrt {-a^2\,d^2-2\,a\,b\,d^2-b^2\,d^2}}-\frac {\sqrt {b}\,\left (2\,\mathrm {atan}\left (\frac {\left ({\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (\frac {64\,\left (2\,b^{7/2}\,d+8\,a^2\,b^{3/2}\,d+10\,a\,b^{5/2}\,d\right )}{a^5\,\left (a+b\right )\,\sqrt {a\,d^2\,{\left (a+b\right )}^2}\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}}+\frac {32\,\left (b^2\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}+4\,a\,b\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}\right )}{a^5\,\sqrt {b}\,d\,{\left (a+b\right )}^2\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}}\right )+\frac {32\,{\mathrm {e}}^{3\,c}\,{\mathrm {e}}^{3\,d\,x}\,\left (b^2\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}+4\,a\,b\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}\right )}{a^5\,\sqrt {b}\,d\,{\left (a+b\right )}^2\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}}\right )\,\left (a^6\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}+a^5\,b\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}\right )}{64\,b^2+256\,a\,b}\right )-2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {a\,d^2\,{\left (a+b\right )}^2}}{2\,\sqrt {b}\,d\,\left (a+b\right )}\right )\right )}{2\,\sqrt {a^3\,d^2+2\,a^2\,b\,d^2+a\,b^2\,d^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {csch}{\left (c + d x \right )}}{a + b \operatorname {sech}^{2}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________